import 'package:flutter/material.dart';


import 'package:flutter/material.dart';

MaterialColor createMaterialColor(Color color) {
  List<double> strengths = <double>[.05];
  final Map<int, Color> swatch = {};
  final int r = color.red, g = color.green, b = color.blue;

  for (int i = 1; i < 10; i++) {
    strengths.add(0.1 * i);
  }

  for (var strength in strengths) {
    final double ds = 0.5 - strength;
    swatch[(strength * 1000).round()] = Color.fromRGBO(
      r + ((ds < 0 ? r : (255 - r)) * ds).round(),
      g + ((ds < 0 ? g : (255 - g)) * ds).round(),
      b + ((ds < 0 ? b : (255 - b)) * ds).round(),
      1,
    );
  }

  return MaterialColor(color.value, swatch);
}


// 透明白色渐变色
const Color c_white5 = Color(0x0DFFFFFF); // 5%
const Color c_white10 = Color(0x1AFFFFFF); // 10%
const Color c_white15 = Color(0x26FFFFFF); // 10%
const Color c_white20 = Color(0x33FFFFFF); // 20%
const Color c_white30 = Color(0x4DFFFFFF); // 30%
const Color c_white40 = Color(0x66FFFFFF); // 40%
const Color c_white50 = Color(0x80FFFFFF); // 50%
const Color c_white60 = Color(0x99FFFFFF); // 60%
const Color c_white70 = Color(0xB3FFFFFF); // 70%
const Color c_white80 = Color(0xCCFFFFFF); // 80%
const Color c_white90 = Color(0xE6FFFFFF); // 90%
const Color c_white = Color(0xFFFFFFFF); // 100%

// 透明黑色渐变色
const Color c_black10 = Color(0x1A000000); // 10%
const Color c_black20 = Color(0x33000000); // 20%
const Color c_black30 = Color(0x4D000000); // 30%
const Color c_black40 = Color(0x66000000); // 40%
const Color c_black50 = Color(0x80000000); // 50%
const Color c_black60 = Color(0x99000000); // 60%
const Color c_black70 = Color(0xB3000000); // 70%
const Color c_black80 = Color(0xCC000000); // 80%
const Color c_black90 = Color(0xE6000000); // 90%
const Color c_black = Color(0xFF000000); // 100%

const Color c_606060 = Color(0xff606060);

const Color appColor = Colors.blue;

const Color c_1a1a1a = Color(0xff1a1a1a);
const Color c_f7f7f7 = Color(0xfff7f7f7);
const Color c_b3b3b3 = Color(0xffb3b3b3);
const Color c_313133 = Color(0xff313133);
const Color c_a7aab3 = Color(0xffa7aab3);
const Color c_4d4d4d = Color(0xff4D4D4D);
const Color c_333333 = Color(0xff333333);
const Color c_454545 = Color(0xff454545);
const Color c_ececec = Color(0xffececec);
const Color c_999999 = Color(0xff999999);
const Color c_808080 = Color(0xff808080);
const Color c_989898 = Color(0xff989898);
const Color c_3031333 = Color(0xff303133);
const Color c_fafafa = Color(0xfffafafa);
const Color c_e6e6e6 = Color(0xffe6e6e6);
const Color c_cccccc = Color(0xffcccccc);
const Color c_e9e9e9 = Color(0xffe9e9e9);
const Color c_cdcdcd = Color(0xffcdcdcd);
const Color c_666666 = Color(0xff666666);
const Color c_343434 = Color(0xff343434);
const Color c_353535 = Color(0xff353535);
const Color c_576b95 = Color(0xff576B95);
const Color c_f3f3f5 = Color(0xfff3f3f5);
const Color c_fcbd18 = Color(0xfffcbd18);
const Color c_2b2d30 = Color(0xff2B2D30);
const Color c_f8f8f8 = Color(0xfff8f8f8);
const Color c_0c0c0c = Color(0xff0C0C0C);
const Color c_8ce7ff = Color(0xff8CE7FF);
const Color c_ff6600 = Color(0xffff6600);
const Color c_ffba01 = Color(0xffFFBA01);
const Color c_f5222d = Color(0xfff5222d);
const Color c_F7F8FC = Color(0xffF7F8FC);
const Color c_bff1ff = Color(0xffBFF1FF);
const Color c_f7cdff = Color(0xffF7CDFF);
const Color c_f6f6f6 = Color(0xfff6f6f6);
const Color c_b9b9b9 = Color(0xffb9b9b9);
const Color c_1d1d1d = Color(0xff1d1d1d);
const Color c_f4f4f4 = Color(0xffF4F4F4);
const Color c_f0f0f0 = Color(0xfff0f0f0);
const Color c_d9d9d9 = Color(0xffd9d9d9);
const Color c_45F073 = Color(0xff45f073);
const Color c_76f6ec = Color(0xff76F6EC);
const Color c_4a2aff = Color(0xff4A2AFF);
const Color c_ffc800 = Color(0xffFFC800);
const Color c_ff0000 = Color(0xffff0000);






